<?php

use yii\helpers\Html;
use yii\helpers\ArrayHelper;
use yii\helpers\URL;

/* @var $this yii\web\View */
/* @var $searchModel frontend\models\programacion\ProgramacionesSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
?>
<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">Existencias</div>
  <div class="panel-body">
  </div>
    <table class="table table-condensed" >
        <thead >
            <tr >
                <th></th>
                <th>Pr</th>
                <th>Producto</th>
                <th>Fecha Embarque</th>
                <th>Prog</th>
                <th>Hechas</th>
            </tr>
        </thead>
    </table>
    <div class="div-table-content">
        <table class="table table-condensed">
            <tbody>
                <tr class="{{programacion.Class}}" ng-repeat="programacion in programaciones">
                    <th><input id="radio{{$index}}" name="programacion" type="radio" value="{{$index}}" ng-change="selectProgramacion({{$index}})" ng-model="indexProgramacion"/></th>
                    <th><label for="radio{{$index}}">{{programacion.Prioridad}}</label></th>
                    <th><label for="radio{{$index}}">{{programacion.Producto}}</label></th>
                    <th><label for="radio{{$index}}">{{programacion.FechaEmbarque}}</label></th>
                    <th><label for="radio{{$index}}">{{programacion.Programadas}}</label></th>
                    <th class="{{programacion.Class}}" style="width: 55px;"><label for="radio{{$index}}">{{programacion.Hechas}}</label></th>
                </tr>
            </tbody>
        </table>
    </div>
    <table class="table table-condensed">
        <tfoot>
            <tr>
                <th colspan="13">&nbsp;</th>
            </tr>
        </tfoot>
    </table>
</div>
